/*
 * Copyright (c) zhg2yqq.com Corp.
 * All Rights Reserved.
 */
package com.zhg2yqq.wheels.job.core;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhg2yqq, 2023年11月14日
 * @version zhg2yqq v1.0
 */
public class JobFinishEvent implements Serializable {
    private static final long serialVersionUID = 1L;
    private final JobParameter jobParameter;
    private Date startTime;
    private Date endTime;
    /**
     * 如果作业异常，异常信息
     */
    private Exception ex;

    /**
     * @param jobParameter
     */
    public JobFinishEvent(JobParameter jobParameter) {
        this.jobParameter = jobParameter;
    }

    public JobParameter getJobParameter() {
        return jobParameter;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Exception getEx() {
        return ex;
    }

    public void setEx(Exception ex) {
        this.ex = ex;
    }
}
